package de.hska.util;

import static de.hska.util.LogUtil.begin;
import static de.hska.util.LogUtil.end;

import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class AktuellesDatum {
	private static final Log LOG = LogFactory.getLog(AktuellesDatum.class);
	private static final boolean DEBUG = LOG.isDebugEnabled();

	public static Date aktuellesDatum() {
		if (DEBUG) begin(LOG);
		
		final Date datum = new Date();
		
		if (DEBUG) end(LOG, datum);
		return datum;
	}
}
